//
//  Scenes.m
//  AirTrafficControl
//
//  Created by gu steve on 1/8/12.
//  Copyright (c) 2012 SteveGu. All rights reserved.
//

#import "Scenes.h"

#import "AirportLayer.h"
#import "ProductInfoLayer.h"
#import "BackgroundColorLayer.h"

@implementation Scenes
+(CCScene *) scene:(UIView *) view
{
	// 'scene' is an autorelease object.
	CCScene *scene = [CCScene node];
	
	// 'layer' is an autorelease object.
	AirportLayer *airportLayer = [AirportLayer node];
    ProductInfoLayer *pdInfoLayer = [ProductInfoLayer node];
    BackgroundColorLayer *backgroundLayer = [BackgroundColorLayer node];
    
	
	// add layer as a child to scene
	[scene addChild: airportLayer];
    [scene addChild: pdInfoLayer];
    [scene addChild: backgroundLayer z:-1];
	
	// return the scene
	return scene;
}
@end
